package org.wqp.simplemvc.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * @author wuqiupeng
 * @date 2018-04-05 17:18
 * @Description 存储方法的访问路径
 */

public class RequestMapingMap {
    /**
     * 用于存储方法的访问路径
     */
    private  static Map<String, Class<?>> requestMap = new HashMap<String, Class<?>>();

    public static Class<?> getClassName(String path) {
        return
                requestMap.get(path);
    }

    public static  void put(String path, Class<?> className) {

        System.out.println("put controller " + path + " , use Class " + className.getName());
        requestMap.put(path, className);
    }

    public static Map<String, Class<?>> getRequesetMap() {
        return  requestMap;
    }

}
